
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StoreSeckillTimeRequest struct {

	SeckillId string `json:"seckill_id" form:"seckill_id"`

	TimeId string `json:"time_id" form:"time_id"`

}

func (r *StoreSeckillTimeRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StoreSeckillTimeRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"seckill_id": "required",

		"time_id": "required",

	}
}

func (r *StoreSeckillTimeRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreSeckillTimeRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreSeckillTimeRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
